
TRIGGER PROCEDURE FOR CREATE OF PS_MSTR.

{mfdeclre.i }

HK:
do:
    if not can-find ( first dt_mstr where dt_table = "ps_mstr" and dt_type = "ADD" ) then leave HK.
    
    for first dt_mstr no-lock where dt_table = "ps_mstr" and dt_type = "ADD" :
    
        run CreateDthist(input dt_table, input dt_field, input dt_type, input "", input "", 
	        input recid(ps_mstr), input ps_mstr.ps_par, input ps_mstr.ps_comp, input ps_mstr.ps_ref, input string(ps_mstr.ps_start),
     	    input "", input "", input "", input "") .
     	    
    end.
end.

{hkdttrans.i}
